package com.yc154.cloudindex.web.fegin;

import com.yc154.damai.entity.User;
import org.springframework.stereotype.Component;

@Component
public class OrderDoImpl implements OrderDo{
    @Override
    public String order() {
        return "降级的Order";
    }

    @Override
    public String hello(String name) {
        return "你好 " + name;
    }

    @Override
    public int add(int a, int b) {
        return a + b;
    }

    @Override
    public int sub(int a, int b) {
        return a - b;
    }

    @Override
    public User setUser(String newName, Integer newAge, User user) {
        user.setName(newName + "--降级了");
        user.setAge(newAge);
        return user;
    }
}
